<!DOCTYPE html>
<html>
	<?php $this->load->view('html_header'); ?>
  <body class="background">
  	<?php
  		$summary_bars = array(
  			'/res/images/fav_feed_template_summary_1.png',
  			'/res/images/fav_feed_template_summary_2.png'
  		); 
  		$bar_idx = 0;
  	?>
		<?php
			foreach( $feeds as $feed ) : ?>
			<div id="fav-feed">
				<div id="fav-feed-body">
					<img id="fav-feed-user-image" src="<?php echo $feed['imageurl']; ?>">
					<div id="fav-feed-title">
						<?php echo $feed['desc']; ?>
					</div>
					<a href="/feed/view/<?php echo $feed['id']; ?>">
						<img id="fav-feed-image" src="<?php echo $feed['imageurl']; ?>">
					</a>
				</div>
				<img id="fav-feed-summary" src="<?php echo $summary_bars[$bar_idx]; ?>">
					<?php
						if( ++$bar_idx == count($summary_bars) )
							$bar_idx = 0;
					?>
				</img>				
	  	</div> 	 
	  	<br> 		
		<?php endforeach; ?>
  </body>
</html>